import random
index = random.sample(range(0,33),8)

list=[]
for i in range(8):
    x=int(input("输入第{}个1-33之间的整数：".format(i+1)))
    list.append(x)
result=set(list).intersection(index)
print("中奖号码为{}:".format(index))
print("你的号码为{}:".format(list))
if len(result)==8:
    print("一等奖")
elif len(result)==7:
    print("二等奖")
elif len(result)==6:
    print("三等奖")
elif len(result)==5:
    print("四等奖")
elif len(result)<5:
    print("白给")





